package com.websystique.springsecurity.service;

import com.websystique.springsecurity.dao.UserDao;
import com.websystique.springsecurity.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements  UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public User findById(int id) {
        return userDao.findById(id);
    }

    @Override
    public User findBySso(String sso) {
        return userDao.findBySSO(sso);
    }
}
